package com.bestcem.xm.user.util.convert;

import com.bestcem.xm.user.entity.mysql.OrganizationWalletConfig;
import com.bestcem.xm.user.entity.pojo.OrganizationWalletConfigDO;
import com.bestcem.xm.user.service.dto.organization.OrganizationWalletConfigDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 公司钱包配置转换类
 *
 * @author wangyunyun <jishuo.yan@idiaoyan.com>
 * @version v1.0
 * @date 2022/5/13 11:04
 */
@Mapper(componentModel = "spring")
public interface OrganizationWalletConfigConvert {

    OrganizationWalletConfigDO dto2Do(OrganizationWalletConfigDTO organizationWalletConfigDTO);

    List<OrganizationWalletConfigDTO> dos2Dtos(List<OrganizationWalletConfigDO> organizationWalletConfigDO);

    OrganizationWalletConfig do2Mysql(OrganizationWalletConfigDO organizationWalletConfigDO);

    List<OrganizationWalletConfigDO> mysqls2Dos(List<OrganizationWalletConfig> organizationWalletConfigs);

    List<OrganizationWalletConfigDO> dtos2Dos(List<OrganizationWalletConfigDTO> configs);

    List<OrganizationWalletConfig> dos2Mysqls(List<OrganizationWalletConfigDO> walletConfigDOList);
}
